#ifndef BASE_GRADE_WIDGET_H
#define BASE_GRADE_WIDGET_H

#include <QObject>
#include <QWidget>
class QPushButton;
class QVBoxLayout;
class QHBoxLayout;
class QSpinBox;
class QLabel;
class QLineEdit;
class BaseGradeWidget : public QWidget
{
    Q_OBJECT
public:
    explicit BaseGradeWidget(QWidget *parent = nullptr);
    virtual void soltDoWork() = 0;
signals:

public slots:
    void slotClickBtn();
    void slotClickSaveBtn();

private:
    void initUI();
    void initConnect();
    QHBoxLayout *m_layoutNum;
    QVBoxLayout *m_layoutMain;
    // 功能按钮
    QPushButton *m_btn;
    // 选择保存文件路径的按钮
    QPushButton *m_btnSavevFile;
    // 显示文件路径
    QLineEdit* m_edtSaveFileName;
    QHBoxLayout *m_layoutSaveFile;

    QLabel* m_labNum;
    QSpinBox* m_SpinBoxNum;
};

#endif // BASE_GRADE_WIDGET_H
